<template>
  <div class="cPage">
    <div class="edit">
      <Edit v-if="isShow" :originForm="originForm" />
    </div>
  </div>
</template>
<script>
import Edit from "./edit";

export default {
  components: {
    Edit,
  },
  data() {
    return {
      isShow: false,
      // 表单相关
      originForm: {
        topUrl: ""
      },
    };
  },
  methods: {},
  created() {
    const ajaxType = "get";
    const url = "/api/plat/setting.json";
    const params = {
      key: "zhizhiManageData",
    };
    this.$axios[ajaxType](url, {params}).then((response) => {
      const res = response.value
      if(res) this.originForm = JSON.parse(res);
      this.isShow = true;
    });
  },
};
</script>
<style lang="scss" scoped>
.cPage {
  padding: 30px 15px;
}
.edit {
  margin: 0px 40px 0 0;
}
</style>
